Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/CXSPA-7935:Modify the OCC API endpoint for SPA consumes(#19141) #19141

Merged
merged 6 commits into from
Aug 20, 2024

Conversation

@clordc clordc requested review from a team as code owners August 16, 2024 09:56
@github-actions github-actions bot marked this pull request as draft August 16, 2024 09:56
@clordc clordc changed the title Modify the OCC API endpoint for SPA consumes feat/CXSPA-7935:Modify the OCC API endpoint for SPA consumes Aug 16, 2024
@clordc clordc changed the title feat/CXSPA-7935:Modify the OCC API endpoint for SPA consumes feat/CXSPA-7935:Modify the OCC API endpoint for SPA consumes(#19141) Aug 16, 2024
@clordc clordc marked this pull request as ready for review August 19, 2024 08:18
@@ -11,7 +11,7 @@ export const defaultOccUserProfileConfig: OccConfig = {
occ: {
endpoints: {
userRegister: 'users',
userForgotPassword: 'forgottenpasswordtokens',
userForgotPassword: 'passwordRestoreToken',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create new one instead of change existing one.

...CONTENT_TYPE_URLENCODED_HEADER,
});
const body = { loginId: userEmailAddress };
let headers = new HttpHeaders(CONTENT_TYPE_JSON_HEADER);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let headers = new HttpHeaders(CONTENT_TYPE_JSON_HEADER);
const headers = new HttpHeaders(CONTENT_TYPE_JSON_HEADER);

Copy link

cypress bot commented Aug 19, 2024



Test summary

121 0 2 0Flakiness 5


Run details

Project spartacus
Status Passed
Commit cf3a479 ℹ️
Started Aug 20, 2024 7:15 AM
Ended Aug 20, 2024 7:20 AM
Duration 04:27 💡
OS Linux Ubuntu -
Browser Electron 118

View run in Cypress Cloud ➡️


Flakiness

regression/checkout/checkout-flow.core-e2e.cy.ts Flakiness
1 Checkout flow > Mobile > should checkout with a registered user
regression/variants/apparel-checkout-as-guest.core-e2e.cy.ts Flakiness
1 Apparel - checkout as guest > Desktop > should perform checkout as guest, create an account and verify guest data
ssr/pages.core-e2e.cy.ts Flakiness
1 SSR > should render homepage
2 SSR > should render PLP
3 SSR > should render PDP

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud


expect(mockReq.request.body).toEqual({
newLoginId: newUserId,
password: currentPassword,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
password: currentPassword,
password: currentPassword

@@ -351,8 +341,11 @@ describe('OccUserProfileAdapter', () => {
);

expect(mockReq.cancelled).toBeFalsy();
expect(mockReq.request.body).toEqual({
oldPassword: oldPassword,
newPassword: newPassword,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
newPassword: newPassword,
newPassword: newPassword

return this.http.put(url, httpParams, { headers }).pipe(
const body = {
oldPassword: oldPassword,
newPassword: newPassword,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
newPassword: newPassword,
newPassword: newPassword

return this.http.put(url, httpParams, { headers }).pipe(
const body = {
newLoginId: newUserId,
password: currentPassword,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
password: currentPassword,
password: currentPassword

@github-actions github-actions bot marked this pull request as draft August 19, 2024 09:45
@clordc clordc marked this pull request as ready for review August 20, 2024 05:40
@github-actions github-actions bot marked this pull request as draft August 20, 2024 06:37
@clordc clordc marked this pull request as ready for review August 20, 2024 07:05
@clordc clordc merged commit 05081ac into develop Aug 20, 2024
28 checks passed
@clordc clordc deleted the feature/CXSPA-7935 branch August 20, 2024 07:27
pawelfras added a commit that referenced this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants